<template>
  <div class="integral">

    <van-nav-bar
        class="header"
        :fixed='true'
        title="ITV积分兑换"
      >
    </van-nav-bar>

     <van-row class="middle">
       <div class="txt">
         <p>当前可用积分</p>
         <p>4124</p>
         <van-button round type="info" plain >兑换记录</van-button>
       </div>
       <div class="btn">
         <van-icon name="question-o" />
         <span>积分说明</span>
       </div>
     </van-row>

     <van-row class="items">

       <p>您可以兑换的套餐:</p>
       <div class="item">
         <div class="left">
            <img :src="src1" />
         </div>
         <div class="right">
           <div class="hello">兑换
         <van-icon name="arrow" />
       </div>
           <h6>&nbsp;&nbsp;优品影视会员 30天</h6>
          <div class="price">&nbsp;&nbsp;
           <del>市场价: 39.9元</del>
          </div>
           <p> &nbsp;&nbsp;3990&nbsp;<span>积分</span></p>
           <p>权益:8000＋部电影、4000＋部电视剧、900＋部综艺、纪录片、经典纪录、Discovery.4K花园、精彩轮播
</p>
         </div>
       </div>
     </van-row>

     <van-row class="items">

       <div class="item">
         <div class="left">
            <img :src="src2" />
         </div>
         <div class="right">
           <div class="hello">兑换
         <van-icon name="arrow" />
       </div>
           <h6>&nbsp;&nbsp;优品影视会员 30天</h6>
          <div class="price">&nbsp;&nbsp;
           <del>市场价: 39.9元</del>
          </div>
           <p> &nbsp;&nbsp;3990&nbsp;<span>积分</span></p>
           <p>权益:8000＋部电影、4000＋部电视剧、900＋部综艺、纪录片、经典纪录、Discovery.4K花园、精彩轮播
</p>
         </div>
       </div>
     </van-row>

     <van-row class="items">

       <div class="item">
         <div class="left">
            <img :src="src1" />
         </div>
         <div class="right">
           <div class="hello">兑换
         <van-icon name="arrow" />
       </div>
           <h6>&nbsp;&nbsp;优品影视会员 30天</h6>
          <div class="price">&nbsp;&nbsp;
           <del>市场价: 39.9元</del>
          </div>
           <p> &nbsp;&nbsp;3990&nbsp;<span>积分</span></p>
           <p>权益:8000＋部电影、4000＋部电视剧、900＋部综艺、纪录片、经典纪录、Discovery.4K花园、精彩轮播
</p>
         </div>
       </div>
     </van-row>
  </div>
</template>

<script>
import src1 from '../../assets/heng/Snipaste_2021-08-11_00-30-41.png'
import src2 from '../../assets/heng/Snipaste_2021-08-11_00-31-10.png'
export default {
    name: 'integral',
    data () {
        return {
            src1,
            src2
        }
    },
    created () {

    },
    mounted () {

    },
    methods: {

    }
}
</script>

<style scoped lang="scss">
*{
  margin: 0;
  padding: 0;
}
/deep/.van-tab{
  width: 300px;
}

.integral{
  padding-bottom: 150px;
  background-color:#191919 ;
  box-sizing: border-box;
  padding-top: 100px;

}

/deep/
.van-nav-bar{
  background-color:#191919;
  .van-nav-bar__content {
  height: 100px;
  line-height: 100px;
  background-color:#191919 ;
  .font,.van-icon{
    font-size: 36px;
    color: #fff;
  }
  .van-nav-bar__title{
    color: #f3811e;
    font-size: 32px;
    font-weight: 700;
  }
}
}

.middle{
  overflow: hidden;
  height: 300px;
  // background-color: red;
  position: relative;
  .txt{
    margin-top: 100px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
  p{
    font-size: 36px;
    color: #f3811e;
    &:nth-of-type(2){
    font-size: 72px;
    font-weight: 700;
    }
  }
  .van-button{
    width: 140px;
    color:#f3811ef8 ;
    background-color: rgba(255,255,255,0.7);
    border-color:#f3811e ;
  }
  .btn{
    width: 150px;
    font-size: 26px;
    color: #f3811e;
    position: absolute;
    right: 10px;
    top: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
}
.items{
  margin-top: 50px;
  display: flex;
  // justify-content: space-around;
  align-items: center;
  flex-direction: column;
  p{
    width: 100%;
    color:#f3811e ;
    font-size: 26px;
    text-align: left;
    margin-bottom: 20px;
  }
  .item{
    width: 95%;
    height: 300px;
    border-radius: 7%;
    overflow: hidden;
    background-color: white;

  }
  .left{
    float: left;
    box-sizing: border-box;
    width: 36%;
    height: 100%;
    padding: 36px 0px 0px 20px ;
    img{
      width: 100%;
    }

  }
  .right{
      padding-top: 36px;
      position: relative;
      width: 64%;
      font-size: 26px;
      float: left;
      text-align: left;
      h6{
        font-size: 32px;
        margin-bottom: 8px;
      }
      .price{
        margin-bottom: 24px;
        color: #ccc;
      }
      p{
        font-size: 48px;
        font-weight: 700;
        span{
          font-size: 26px;
        }
        &:nth-of-type(2){
          font-size: 26px;
          color: #ccc;
          font-weight: 400;
          margin-left: 20px;
        }
      }
      .hello{
        font-size: 32px;
        position: absolute;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-left: 10px;
        width: 129px;
        height: 50px;
        background-color: #f3811e;
        color: white;
        top: 125px;
        border-radius: 25px 0 0 25px;
      }
    }
}
</style>
